﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace OpenLab.UI.Reception
{
    public partial class ListeDemande : Form
    {
        private BLL.ViewModel.ListAdmissionsBLL _repository = new BLL.ViewModel.ListAdmissionsBLL();
        public ListeDemande()
        {
            InitializeComponent();
            LoadData();
            findbtn.Click += findbtn_Click;
        }

        void findbtn_Click(object sender, EventArgs e)
        {
            LoadData();
        }

        private void LoadData()
        {
            listdemandedgv.DataSource = _repository.GetAll(sDate.Value, eDate.Value);
        }
    }
}
